package com.lhkj.ct.meta.modules.warning.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lhkj.ct.meta.modules.common.enums.RiskLevel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 预警记录
 * </p>
 *
 * @author jobob
 * @since 2023-10-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value="TblScaleWarnRecord对象", description="预警记录")
public class TblScaleWarnRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Tolerate
    public TblScaleWarnRecord() {
    }

    @ApiModelProperty(value = "预警记录id")
    private String id;

    @ApiModelProperty(value = "档案id")
    private String patId;

    @ApiModelProperty(value = "姓名")
    private String patName;

    @ApiModelProperty(value = "性别")
    private String patSex;

    @ApiModelProperty(value = "年龄")
    private Integer patAge;

    @ApiModelProperty(value = "报告id")
    private String rId;

    @ApiModelProperty(value = "量表id")
    private String scaleId;

    @ApiModelProperty(value = "维度id")
    private String dimId;

    @ApiModelProperty(value = "维度名称")
    private String dimName;

    @ApiModelProperty(value = "预警设置id")
    private String warnId;

    @ApiModelProperty(value = "预警级别")
    private RiskLevel warningLevel;

    @ApiModelProperty(value = "预警时间")
    private LocalDateTime warnTime;

    @ApiModelProperty(value = "处理状态 0.未处理 1.已处理")
    private Integer status;

    @ApiModelProperty(value = "处理人")
    private String processor;

    @ApiModelProperty(value = "处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime processingTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "量表名称")
    private String scaleName;


}
